package com.woniuxy.tfss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.tfss.entity.UserAccountRecord;
import com.woniuxy.tfss.mapper.UARecordMapper;
import com.woniuxy.tfss.service.UARecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户账户记录
 */
@Service
public class UARecordServiceImpl extends ServiceImpl<UARecordMapper, UserAccountRecord> implements UARecordService {
    @Autowired
    private UARecordMapper uaRecordMapper;

    @Override
    public UserAccountRecord getByNo(String no) {
        return uaRecordMapper.getByNo(no);
    }

    @Override
    public List<UserAccountRecord> getByUserId(Integer userId) {
        return uaRecordMapper.getByUserId(userId);
    }
}
